﻿
using System;


namespace CrazyMan.TM.Interface.Domain
{
    /// <summary>
    /// Represents a seat at a table.
    /// </summary>
    public class Seat
    {
        private Player _player;

        /// <summary>
        /// Creates a new seat.
        /// </summary>
        public Seat()
        {
            this._player = null;
        }

        /// <summary>
        /// Creates a new seat with the specified player in it.
        /// </summary>
        /// <param name="player">The player in the seat.</param>
        public Seat(Player player)
        {
            this._player = player;
        }

        /// <summary>
        /// Gets and sets the player in the seat.
        /// </summary>
        public Player Player
        {
            get { return this._player; }
            set { this._player = value; }
        }

        /// <summary>
        /// Gets whether the seat is empty.
        /// </summary>
        public bool IsEmpty
        {
            get { return (this._player == null); }
        }
    }
}
